// getting-started.js
var mongoose = require('mongoose');
var tables = require('./tables.js')
mongoose.connect('mongodb://localhost:27017/lobo');

var db = mongoose.connection;
db.on('error', console.error.bind(console, 'connection error:'));
db.once('open', function () {
  console.log('we are connected!')
  var Kitten = tables.Kitten
  var felyne = new Kitten({ name: 'Felyne' });

  felyne.save()
})